package com.im.linving.imbll;

import android.app.Application;
import android.test.ApplicationTestCase;

import com.im.linving.apputils.functions.Action1;
import com.im.linving.apputils.functions.Action2;


/**
 * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
 */
public class ApplicationTest extends ApplicationTestCase<Application> {
    public ApplicationTest() {
        super(Application.class);
    }

    public void testRegister() {
        UserBll userBll = new UserBll();
        Action1 success = new Action1() {
            @Override
            public void call(Object o) {
                System.out.print("success");
            }
        };
        Action2<Integer, String> fail = new Action2<Integer, String>() {
            @Override
            public void call(Integer integer, String s) {
                System.out.print("code = " + integer + " Msg = " + s);

            }
        };
        userBll.register("liny", "pwdd122", success, fail);
    }

}